/*
* @Date: 2021/1/23
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  display: 'inline-block',
  props: [{
    key: 'accept',
    type: 'string',
    label: '文件类型',
  }, {
    key: 'action',
    type: 'string',
    label: '上传地址',
  }, {
    key: 'beforeUpload',
    type: 'function',
    function: '(file, fileList)',
    label: '前置钩子',
  }, {
    key: 'data',
    type: 'object',
    label: '额外参数',
  }, {
    key: 'defaultFileList',
    type: 'array',
    label: '默认文件',
  }, {
    key: 'directory',
    type: 'boolean',
    label: '文件夹支持',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '禁用',
  }, {
    key: 'headers',
    type: 'object',
    label: '请求头',
  }, {
    key: 'isImageUrl',
    type: 'boolean',
    label: '缩略图',
  }, {
    key: 'itemRender',
    type: 'function',
    function: '(originNode, file, fileList)',
    label: '上传项',
  }, {
    key: 'listType',
    type: 'select',
    options: ['text', 'picture', 'picture-card'],
    label: '内建样式',
  }, {
    key: 'method',
    type: 'select',
    options: ['post', 'get'],
    label: '请求方法',
  }, {
    key: 'multiple',
    type: 'boolean',
    label: '多文件',
  }, {
    key: 'name',
    type: 'string',
    label: '参数名称',
  }, {
    key: 'openFileDialogOnClick',
    type: 'boolean',
    label: '对话框',
  }, {
    key: 'withCredentials',
    type: 'boolean',
    label: '携带cookie',
  }, {
    key: 'onChange',
    type: 'function',
    function: '(e)',
    label: '变化回调',
  }, {
    key: 'onRemove',
    type: 'function',
    function: '(file)',
    label: '移除回调',
  }]
}
